import request from '@/utils/request.js'

// ---------------------------------------TODO: 所有工况----------------------------------------------------
// 乌百线 单油品连续输送+PID控制下的稳态输送
export const postSPSWBX_WTYX = (data) => {
  return request({
    url: '/sps/WBX_WTYX',
    method: 'POST',
    data
  })
}

// 乌百线 间歇输送+PID控制下的稳态输送
export const postSPSWBX_JXSS = (data) => {
  return request({
    url: '/sps/WBX_JXSS',
    method: 'POST',
    data
  })
}

// 乌百线 单油品连续输送+加减阻剂输送
export const postSPSWBX_JIANZU = (data) => {
  return request({
    url: '/sps/WBX_JIANZU',
    method: 'POST',
    data
  })
}

// 乌百线 单油品连续输送+输量与油温调节
export const postSPSWBX_SLTJ = (data) => {
  return request({
    url: '/sps/WBX_SLTJ',
    method: 'POST',
    data
  })
}

// 乌百线 单油品连续输送+清管器运行
export const postSPSWBX_PIG = (data) => {
  return request({
    url: '/sps/WBX_PIG',
    method: 'POST',
    data
  })
}

// 乌百线 单油品连续输送+管道泄漏
export const postSPSWBX_XL = (data) => {
  return request({
    url: '/sps/WBX_XL',
    method: 'POST',
    data
  })
}

// 乌百线 单油品连续输送+阀门异常关断
export const postSPSWBX_FMYC = (data) => {
  return request({
    url: '/sps/WBX_FMYC',
    method: 'POST',
    data
  })
}

// 乌百线 单油品连续输送+泵机组停运
export const postSPSWBX_WTYX_BJZTY = (data) => {
  return request({
    url: '/sps/WBX_WTYX_BJZTY',
    method: 'POST',
    data
  })
}

// 百克线 顺序输送+加减阻剂输送
export const postSPSBKX_JANNZU = (data) => {
  return request({
    url: '/sps/BKX_JIANZU',
    method: 'POST',
    data
  })
}

// 百克线 顺序输送+PID控制下的稳态输送
export const postSPSBKX_SXSS = (data) => {
  return request({
    url: '/sps/BKX_SXSS',
    method: 'POST',
    data
  })
}

// 百克线 掺混输送+PID控制下的稳态输送
export const postSPSBKX_CHSS = (data) => {
  return request({
    url: '/sps/BKX_CHSS',
    method: 'POST',
    data
  })
}

// 百克线 掺混输送+加减阻剂输送
export const postSPSBKX_CHSS_DRA = (data) => {
  return request({
    url: '/sps/BKX_CHSS_DRA',
    method: 'POST',
    data
  })
}

// 百克线 顺序输送+清管器运行
export const postSPSBKX_SXSS_PIG = (data) => {
  return request({
    url: '/sps/BKX_SXSS_PIG',
    method: 'POST',
    data
  })
}

// 百克线 掺混输送+清管器运行
export const postSPSBKX_CHSS_PIG = (data) => {
  return request({
    url: '/sps/BKX_CHSS_PIG',
    method: 'POST',
    data
  })
}

// 百克线 顺序输送+管道泄漏
export const postSPSBKX_SXSS_XL = (data) => {
  return request({
    url: '/sps/BKX_SXSS_XL',
    method: 'POST',
    data
  })
}

// 百克线 掺混输送+管道泄漏
export const postSPSBKX_CHSS_XL = (data) => {
  return request({
    url: '/sps/BKX_CHSS_XL',
    method: 'POST',
    data
  })
}

// 百克线 掺混输送+输量与油温调节
export const postSPSBKX_CHSS_SLTJ = (data) => {
  return request({
    url: '/sps/BKX_CHSS_SLTJ',
    method: 'POST',
    data
  })
}

// 百克线 顺序输送+输量与油温调节
export const postSPSBKX_SLTJ = (data) => {
  return request({
    url: '/sps/BKX_SLTJ',
    method: 'POST',
    data
  })
}

// 百克线 顺序输送+阀门异常关断
export const postSPSBKX_FMYC = (data) => {
  return request({
    url: '/sps/BKX_FMYC',
    method: 'POST',
    data
  })
}

// 百克线 掺混输送+阀门异常关断
export const postSPSBKX_CHSS_FMY = (data) => {
  return request({
    url: '/sps/BKX_CHSS_FMYC',
    method: 'POST',
    data
  })
}

// 百克线 顺序输送+泵机组停运
export const postSPSBKX_SXSS_BJZTY = (data) => {
  return request({
    url: '/sps/BKX_SXSS_BJZTY',
    method: 'POST',
    data
  })
}

// 百克线 掺混输送+泵机组停运
export const postSPSBKX_CHSS_BJZTY = (data) => {
  return request({
    url: '/sps/BKX_CHSS_BJZTY',
    method: 'POST',
    data
  })
}

// 81_701线 单油品连续输送+PID控制下的稳态输送
export const postSPSS81_701_WTYX = (data) => {
  return request({
    url: '/sps/S81_701_WTYX',
    method: 'POST',
    data
  })
}

// 81_701线 单油品连续输送+加减阻剂输送
export const postSPSS81_701_JIANZU = (data) => {
  return request({
    url: '/sps/S81_701_JIANZU',
    method: 'POST',
    data
  })
}

// 81_701线 单油品连续输送+管道泄漏
export const postSPSS81_701_XL = (data) => {
  return request({
    url: '/sps/S81_701_XL',
    method: 'POST',
    data
  })
}

// 81_701线 单油品连续输送+清管器运行
export const postSPSS81_701_PIG = (data) => {
  return request({
    url: '/sps/S81_701_PIG',
    method: 'POST',
    data
  })
}

// 81_701线 单油品连续输送+输量与油温调节
export const postSPSS81_701_SLTJ = (data) => {
  return request({
    url: '/sps/S81_701_SLTJ',
    method: 'POST',
    data
  })
}

// 81_701线 单油品连续输送+泵机组停运
export const postSPSS81_701_WTYX_BJZTY = (data) => {
  return request({
    url: '/sps/S81_701_WTYX_BJZTY',
    method: 'POST',
    data
  })
}

// 81_701线 单油品连续输送+阀门异常关断
export const postSPSS81_701_FMYC = (data) => {
  return request({
    url: '/sps/S81_701_FMYC',
    method: 'POST',
    data
  })
}

// 701_ZZ线 顺序输送+PID控制下的稳态输送
export const postSPSS701_ZZ_SXSS = (data) => {
  return request({
    url: '/sps/S701_ZZ_SXSS',
    method: 'POST',
    data
  })
}

// 701_ZZ线 顺序输送+加减阻剂输送
export const postSPSS701_ZZ_JANNZU = (data) => {
  return request({
    url: '/sps/S701_ZZ_JIANZU',
    method: 'POST',
    data
  })
}

// 701_ZZ线 顺序输送+清管器运行
export const postSPSS701_ZZ_SXSS_PIG = (data) => {
  return request({
    url: '/sps/S701_ZZ_SXSS_PIG',
    method: 'POST',
    data
  })
}

// 701_ZZ线 顺序输送+管道泄漏
export const postSPSS701_ZZ_SXSS_XL = (data) => {
  return request({
    url: '/sps/S701_ZZ_SXSS_XL',
    method: 'POST',
    data
  })
}

// 701_ZZ线 顺序输送+输量与油温调节
export const postSPSS701_ZZ_SLTJ = (data) => {
  return request({
    url: '/sps/S701_ZZ_SLTJ',
    method: 'POST',
    data
  })
}

// 701_ZZ线 顺序输送+阀门异常关断
export const postSPSS701_ZZ_FMYC = (data) => {
  return request({
    url: '/sps/S701_ZZ_FMYC',
    method: 'POST',
    data
  })
}

// 全线 PID控制下的稳态输送
export const postSPSQUANXIAN_WTYX = (data) => {
  return request({
    url: '/sps/QUANXIAN_WTYX',
    method: 'POST',
    data
  })
}

// 全线 加减阻剂输送
export const postSPSQUANXIAN_DRA = (data) => {
  return request({
    url: '/sps/QUANXIAN_DRA',
    method: 'POST',
    data
  })
}

// 全线 清管器运行
export const postSPSQUANXIAN_PIG = (data) => {
  return request({
    url: '/sps/QUANXIAN_PIG',
    method: 'POST',
    data
  })
}

// 全线 水力越站
export const postSPSQUANXIAN_YZ = (data) => {
  return request({
    url: '/sps/QUANXIAN_YZ',
    method: 'POST',
    data
  })
}

// 全线 输量与油温调节
export const postSPSQUANXIAN_SLTJ = (data) => {
  return request({
    url: '/sps/QUANXIAN_SLTJ',
    method: 'POST',
    data
  })
}

// 全线 管道泄漏
export const postSPSQUANXIAN_LEAK = (data) => {
  return request({
    url: '/sps/QUANXIAN_LEAK',
    method: 'POST',
    data
  })
}

// 全线 阀门异常关断
export const postSPSQUANXIAN_FMYC = (data) => {
  return request({
    url: '/sps/QUANXIAN_FMYC',
    method: 'POST',
    data
  })
}

// 全线 泵机组停运
export const postSPSQUANXIAN_PUMP = (data) => {
  return request({
    url: '/sps/QUANXIAN_PUMP',
    method: 'POST',
    data
  })
}

// 风克线 单油品输送+PID控制下的稳态输送
export const postSPSFK_WT = (data) => {
  return request({
    url: '/sps/FKX_WTYX0',
    method: 'POST',
    data
  })
}

// 北十六线 PID控制下的稳态输送
export const postSPSB16_WT = (data) => {
  return request({
    url: '/sps/QUANXIAN_FMYC',
    method: 'POST',
    data
  })
}

// ---------------------------------------TODO: 安全决策----------------------------------------------------

// 获取最小进站温度和最大出站压力
export const getMaxAndMin = (data) => {
  return request({
    url: '/sps/GET_DATA',
    method: 'POST',
    data
  })
}

// 乌百线最小输量
export const postSPSWBX_Qmin = (data) => {
  return request({
    url: '/sps/WBX_Qmin',
    method: 'POST',
    data
  })
}

// 乌百线最大输量
export const postSPSWBX_Qmax = (data) => {
  return request({
    url: '/sps/WBX_Qmax',
    method: 'POST',
    data
  })
}

// 乌百线 安全停输时间
export const postSPSWBX_TSTIME_Psmin = (data) => {
  return request({
    url: '/sps/WBX_TSTIME_Psmin',
    method: 'POST',
    data
  })
}

// 81_701线 最小输量
export const postSPSS81_701_Qmin = (data) => {
  return request({
    url: '/sps/S81_701_Qmin',
    method: 'POST',
    data
  })
}

// 81_701线 最大输量
export const postSPSS81_701_Qmax = (data) => {
  return request({
    url: '/sps/S81_701_Qmax',
    method: 'POST',
    data
  })
}

// 81_701线 安全停输时间
export const postSPSS81_701_TSTIME = (data) => {
  return request({
    url: '/sps/S81_701_TSTIME',
    method: 'POST',
    data
  })
}
